package com.tuyrt.`as`.proj.kotlin_demo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import android.widget.Toast

class MainActivity : AppCompatActivity() {

    private val FIRST_FRAGMENT = "first_fragment"
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val textView = find<TextView>(R.id.text)

        R.id.button.onClick(this) {
            Toast.makeText(this, "button", Toast.LENGTH_SHORT).show()
        }

    }

}